<?php
/**
 * SocialEnginePro
 *
 * @category   Application_Extensions
 * @package    
 * @author     Azim
 */

/**
 * @category   Application_Extensions
 * @package    
 */
class tv_Widget_CoomingUpController extends Engine_Content_Widget_Abstract
{
  
  public function indexAction()
  {
        $table = Engine_Api::_()->getDbtable('tvs', 'tv');


        $this->view->paginator = $paginator = Zend_Paginator::factory($table->getListTv('soon'));
        
        // Set item count per page and current page number
        $paginator->setItemCountPerPage($this->_getParam('itemCountPerPage', 3));
        $paginator->setCurrentPageNumber($this->_getParam('page', 1));

        if ($paginator->getTotalItemCount() <= 0) {
            return $this->setNoRender();
        }
  }
}